var sRSRotationSystemTestCase = {};

var srsRotationSystem = new it.koutifaris._tetris.SRSRotationSystem();
var PieceType = it.koutifaris._tetris.PieceType;

sRSRotationSystemTestCase.getTestCaseName = function() {
	return "SRSRotationSystem Test";
};

sRSRotationSystemTestCase.testCalculateRotationIndex = function() {
	assertEquals(2, srsRotationSystem.calculateRotationIndex(PieceType.I, 2));
	assertEquals(1, srsRotationSystem.calculateRotationIndex(PieceType.I, 5));
};

sRSRotationSystemTestCase.testCalculateRotationIndexNegativeRotations = function() {
	assertEquals(3, srsRotationSystem.calculateRotationIndex(PieceType.I, -1));
	assertEquals(3, srsRotationSystem.calculateRotationIndex(PieceType.I, -5));
};